{% extends 'Home/base_mian.html'%}
{% load customer_filters%}
<!DOCTYPE html>
{% load static%}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--  子模板导入css文件的地方-->
    {% block css %}
    {{block.super}}
    <link rel="stylesheet" href="{% static  'Students/check_student/css/check_student.css'%}">
    {% endblock%}
</head>
<body>
{% block content%}
    
<form action="/user/check_user_id" method="post">
        通过ID查询 :<input type="text" class="form-control" name="id">
        <button class="btn btn-primary">查询</button>
</form>

<form action="/user/check_user_name" method="post">
        通过名字查询:<input type="text" class="form-control" name="username">
        <button class="btn btn-primary">查询</button>
</form>

 <table class="table table-striped">
        <thead>
            <tr>
                <th>ID</th>
                <th>名字</th>
                <th>性别</th>
                <th>年龄</th>
                <th>联系方式</th>
                <th>家庭地址</th>
                <th>班级</th>
            </tr>
        </thead>
        <tbody>
              {% for i in student%}
            <tr>
                <td>{{i.id}}</td>
                <td>{{i.username}}</td>
                <td>{{i.sex|to_sex}}</td>
                <td>{{i.age}}</td>
                <td>{{i.phone}}</td>
                <td>{{i.address}}</td>
                <td>{{i.classes_id}}</td>
            </tr>
            {% endfor %}

        </tbody>
    </table>
{%endblock%}
</body>
{% block js%}
 {{block.super}}
<script src="{% static  'Students/check_student/js/check_student.js'%}"></script>
{% endblock %}
</html>